package com.abhimanyu.dataaccess;

import java.util.List;

import com.google.appengine.api.datastore.DatastoreService;
import com.google.appengine.api.datastore.DatastoreServiceFactory;

public abstract class AbstractGoogleDatastoreDao<T> implements IDao<T> {

	DatastoreService datastoreService = DatastoreServiceFactory
			.getDatastoreService();
	private String databaseName;
	private String tableName;
	
	public abstract List<T> fetchAll();
	public abstract void save(T object);
	public abstract void update(T object);
	public DatastoreService getDatastoreService() {
		return datastoreService;
	}

	public String getDatabaseName() {
		return databaseName;
	}

	public void setDatabaseName(String databaseName) {
		this.databaseName = databaseName;
	}	

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}
}
